package com.dhy.takeaway.service;

import com.dhy.takeaway.dao.StoreDao;
import com.dhy.takeaway.entity.Store;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoreService {
    @Autowired
    StoreDao storeDao;

    public List<Store> findAllStore(){
        return storeDao.findAllStore();
    }

    public List<Store> findStore(String type){
        return storeDao.findStore(type);
    }

}
